package net.seayan.designpattern4j.template;

public class CarImpl extends AbstractTemplate{

	private boolean hookFlag=true;
	
	@Override
	protected void start() {
		System.out.println("car start!");
	}

	@Override
	protected void check() {
		System.out.println("car check!");
	}

	@Override
	protected void stop() {
		System.out.println("car stop!");
	}

	@Override
	protected void hook() {
		System.out.println("car hook!");
	}
	
	protected boolean isHook(){
		return hookFlag;
	}
	
	public void setHook(boolean hookFlag){
		this.hookFlag=hookFlag;
	}

}
